import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pawnshop.settings')
django.setup()
import datetime
from api import models


def init_data():
    models.Topic.objects.create(
        name="捡漏",
        people_num=26356
    )
    models.Topic.objects.create(
        name="音乐",
        people_num=26356
    )
    models.Topic.objects.create(
        name="足球",
        people_num=26356
    )
    models.Topic.objects.create(
        name="风景",
        people_num=26356
    )
    models.Topic.objects.create(
        name="创业",
        people_num=26356
    )


if __name__ == '__main__':
    init_data()
